<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="shopinfosList" checkbox="true" pagination="true" fitColumns="true"  sortName="id" actionUrl="shopinfosController.do?datagrid&type=${type}" idField="id" fit="true" queryMode="group">
   <t:dgCol title="系统编号"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="资讯编号"  field="infoid"  queryMode="single" width="31"></t:dgCol>
   <t:dgCol title="商铺名称"  field="shopname"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="资讯标题"  field="infotitle"  queryMode="single" query="true" width="120"></t:dgCol>
   <t:dgCol title="资讯日期"  field="infodate"  formatter="yyyy-MM-dd"  queryMode="group" query="true" width="38"></t:dgCol>
   <t:dgCol title="录入时间"  field="createtime"  formatter="yyyy-MM-dd" hidden="true" queryMode="group"  width="38"></t:dgCol>
   <t:dgCol title="系统编号"  field="sysid"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="商铺编号"  field="shopid"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="资讯内容"  field="infocontent"  hidden="true"  queryMode="single"  width="500"></t:dgCol>

   <c:if test="${type =='sh'}">
    <t:dgCol title="资讯状态"  field="infostate"  queryMode="single"  dictionary="SHOPSTATE"  width="35"></t:dgCol>
   </c:if>

   <c:if test="${type !='sh'}">
    <t:dgCol title="资讯状态"  field="infostate"  queryMode="single"  dictionary="SHOPSTATE" query="true" width="35"></t:dgCol>
   </c:if>

   <t:dgCol title="信息类型"  field="infotype"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="录入人编号"  field="userid"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="信息图片"  field="infoimgurl"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="资讯内容内容"  field="infocontentEn"  hidden="true"  queryMode="single"  width="500"></t:dgCol>
    <c:if test="${type=='sh'}">
   <t:dgToolBar title="审核" icon="icon-edit" url="shopinfosController.do?goVerify" funname="verify" width="1000" height="500"></t:dgToolBar>
   <t:dgToolBar title="查看" icon="icon-search" url="shopinfosController.do?goUpdate" funname="detail" width="1000" height="500"></t:dgToolBar>
   </c:if>
   <c:if test="${type!='sh'}">
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
   <t:dgToolBar title="查看" icon="icon-search" url="shopinfosController.do?goUpdate" funname="detail" width="1000" height="500"></t:dgToolBar>
   <t:dgToolBar title="新增" icon="icon-add" url="shopinfosController.do?goAdd" funname="add" width="1000" height="500"></t:dgToolBar>
   <t:dgDelOpt title="删除" url="shopinfosController.do?doDel&id={id}" urlclass="ace_button"  urlfont="fa-trash-o"/>
   <t:dgToolBar title="修改" icon="icon-edit" url="shopinfosController.do?goUpdate" funname="update" width="1000" height="500"></t:dgToolBar>
   <t:dgToolBar title="批量删除"  icon="icon-remove" url="shopinfosController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
   <%-- <t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar> --%>
   <%-- <t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar> --%>
   <%-- <t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar> --%>
   </c:if>
  </t:datagrid>
  </div>
 </div>
 <script type="text/javascript">
 $(document).ready(function(){
 });
 
   
 
//导入
function ImportXls() {
	openuploadwin('Excel导入', 'shopinfosController.do?upload', "shopinfosList");
}

//导出
function ExportXls() {
	JeecgExcelExport("shopinfosController.do?exportXls","shopinfosList");
}

//模板下载
function ExportXlsByT() {
	JeecgExcelExport("shopinfosController.do?exportXlsByT","shopinfosList");
}

 </script>
